package com.ruoyi.project.modules.pageImageElementCondition.domain;

import com.ruoyi.project.modules.pageImageElementDetail.domain.PageImageElementConditionDetail;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 页面图片与元素条件对象 t_page_image_element_condition
 *
 * @author smallrain
 * @date 2022-05-06
 */
@Data
public class PageImageElementCondition extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 条件ID
     */
    private Long id;

    /**
     * 页面图片与元素关系id
     */
    @Excel(name = "页面图片与元素关系id")
    private Long pagImageElementRefId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 元素条件类型（字典：elementConditionType）
     * 1-展现 2-不展现 3-禁用
     */
    @Excel(name = "元素条件类型", readConverterExp = "字典：elementConditionType")
    private String elementConditionType;

    /**
     * 关联条件（AND，OR）
     */
    @Excel(name = "关联条件", readConverterExp = "AND，OR")
    private String joinCondition;

    /**
     * 条件描述
     */
    @Excel(name = "条件描述")
    private String description;

    /**
     * 条件明细
     */
    private List<PageImageElementConditionDetail> pageImageElementConditionDetailList;
}
